package com.rpframework.module.common.mybatis.mapper;

import com.rpframework.core.mybatis.mapper.SelectMapper;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.special.InsertListMapper;
import tk.mybatis.mapper.common.special.InsertUseGeneratedKeysMapper;
import tk.mybatis.mapper.entity.Example;

/**
 * 通用Mapper接口,其他接口继承该接口即可
 *
 * @param <T> 不能为空
 * @author liuzh
 */
public interface PlugMapper<T> extends Mapper<T>, InsertListMapper<T>, InsertUseGeneratedKeysMapper<T>, SelectMapper<T> {
    /**
     * 获取查询对象
     *
     * @return 查询对象
     */
    Example getExample();
}